home *** CD-ROM | disk | FTP | other *** search
- <comment> Creates a new flash movie. </comment>
-
- <title>New Project</title>
-
- <script language="EasyScript">
-
- registry = "New\\Project";
-
- /////////////////
- function OnLoad ()
- {
- radio_size = getRegistryValue (registry, "radio_size", 1);
- color_depth = getRegistryValue (registry, "color_depth", 3);
- user_width = getRegistryValue (registry, "user_width", 640);
- user_height = getRegistryValue (registry, "user_height", 480);
- }
- //////////////////////
- function CreateMovie ()
- {
- movie = new Movie;
- movie.setDefaultName ();
- SetMovieSize ();
- CreateAndClose ();
- }
- ////////////////////////
- function CreateCartoon ()
- {
- movie = new Cartoon;
- movie.setDefaultName ();
- SetMovieSize ();
- CreateAndClose ();
- }
- //////////////////////////
- function CreateAnimation ()
- {
- movie = new Animation;
- movie.setDefaultName ();
- movie.insertNewFrame();
- SetMovieSize ();
- CreateAndClose ();
- }
- /////////////////////////
- function CreateTimeline ()
- {
- movie = new Timeline;
- movie.setDefaultName ();
- movie.frames.allocateFrames (movie.total_frames);
- movie.frames.setFrameIndex (0);
- SetMovieSize ();
- CreateAndClose ();
- }
- ///////////////////////
- function SetMovieSize ()
- {
- setRegistryValue (registry, "radio_size", radio_size);
- setRegistryValue (registry, "color_depth", color_depth);
- setRegistryValue (registry, "user_width", user_width);
- setRegistryValue (registry, "user_height", user_height);
-
- width = 320;
- height = 240;
- switch (radio_size){
- case 1:
- width = 320;
- height = 240;
- break;
- case 2:
- width = 480;
- height = 360;
- break;
- case 3:
- width = 640;
- height = 480;
- break;
- case 4:
- width = 468;
- height = 60;
- break;
- case 5:
- width = user_width;
- height = user_height;
- break;}
-
- movie.width = width;
- movie.height = height;
- movie.export_width = width;
- movie.export_height = height;
- movie.depth = color_depth;
- movie.saved();
- }
- /////////////////////////
- function CreateAndClose ()
- {
- if (movie.create ()){
- movie.resetCenter ();
- window.returnValue (movie);
- window.close ();}
- }
- ////////////////////
- </script>
-
- <body bgcolor="normal" text="#000000" OnLoad="OnLoad()" OnEnter="CreateFlash()" translate>
- <div valign=middle>
-
- <table><tr><td>
-
- <table>
- <tr><td valign=top><img src="images/large_flash.bitmap" button onMouseUp="CreateMovie()">
- <font size=5>Flash Movie</font>
- <tr><td valign=top><img src="images/large_animation.bitmap" button onMouseUp="CreateTimeline()">
- <font size=5>Flash Timeline</font>
- <comment>
- <tr><td valign=top><img src="images/large_animation.bitmap" button onMouseUp="CreateCartoon()">
- <font size=5>Flash Cartoon</font>
- </comment>
- <tr><td valign=top><img src="images/large_animation.bitmap" button onMouseUp="CreateAnimation()">
- <font size=5>Animation</font>
- </table>
-
- <td>
-
- <table cellspacing=4 cellpadding=0 bgcolor="light" borderstyle="raised"><tr><td>
- <table cellspacing=4 cellpadding=4 width=100%><tr>
- <td width=exact valign=top>
- <table cellspacing=0 cellpadding=2>
- <tr><td><input type="radio" name="radio_size" value="1"><a onclick="radio_size=1">320 x 240</a>
- <tr><td><input type="radio" name="radio_size" value="2"><a onclick="radio_size=2">480 x 360</a>
- <tr><td><input type="radio" name="radio_size" value="3"><a onclick="radio_size=3">640 x 480</a>
- <tr><td><input type="radio" name="radio_size" value="4"><a onclick="radio_size=4">468 x 60 (banner)</a>
- <tr><td><input type="radio" name="radio_size" value="5"><a onclick="radio_size=5">Other</a>
- <input type="text" name="user_width" size=5>x
- <input type="text" name="user_height" size=5>
- </table>
- </table>
- </table>
-
- </table>
-
- <spacer height=8>
-
- <table cellspacing=0 cellpadding=0 width="100%">
- <tr><td align=right>
- <a button onMouseUp="window.close()" width=+20 height=+2><img src="images/small_cancel.bitmap" hspace=4>Cancel</a>
- </table>
-
- <spacer height=4>
-